<?php


namespace app\frontend\controllers;


use App\common\components\BaseController;


/**
 * @desc 【微果小城】--用户端--基类
 * Class UserBaseController
 * @package App\frontend\controllers
 */
class UserBaseController extends BaseController
{
    //端口类型
    const PortType = 1;

    //用户基本信息
    protected $memberInfo = [];

    public function __construct()
    {
        $this->memberInfo['uid'] = 6;
    }

    /**
     * 获取模拟数据
     * @param $class
     * @param $action
     * @param $code
     * @return array|mixed
     */
    public static function getUserData($class, $action, $code = 0)
    {
        //获取数据
        return self::getData($class, $action, $code, self::PortType);
    }


}
